package br.com.modelo.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import br.com.modelo.teste.Teste;

import com.opensymphony.xwork2.ActionSupport;

@Controller
@Scope("request")
public class TesteAction extends ActionSupport{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Autowired
	private Teste testeImpl;
	
	public String execute() throws Exception {
		testeImpl.getNome("teste");
		return SUCCESS;		
	}

	
}
